package com.geovis.emergency.spd.entity.pc.pojo.dto;

import com.geovis.emergency.spd.entity.system.entity.SystemFile;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import java.util.List;

/**
 * <p>
 *  应急预案指挥模块-演练方案提交DTO
 * </p>
 *
 * @author Lonsho
 * @version 1.0
 * @date 2022/6/22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="PcDrillPlanSaveDTO对象", description="应急预案指挥模块-演练方案提交DTO")
public class PcDrillPlanSaveDTO {
    @ApiModelProperty(value = "演练id")
    @NotEmpty(message = "演练id 不能为空")
    private String pcDrillId;

    @ApiModelProperty(value = "演练灾害id")
    private String pcDrillDisasterId;

    @ApiModelProperty(value = "演练灾害事件id")
    @NotEmpty(message = "演练灾害事件id 不能为空")
    private String pcDrillDisasterEventId;


    @ApiModelProperty(value = "分组id")
    @NotEmpty(message = "分组id 不能为空")
    private String groupId;


    private List<SystemFile> fileList;

    @ApiModelProperty(value = "预案id")
    private String planId;

    private List<@Valid PcDrillPlanDetailDTO> detailList;


}
